package com.example.hello.mapper;

import com.example.hello.entity.EmployeeOrderStats;
import com.example.hello.entity.ReportSummary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReportMapper {

    /**
     * 获取报表概览数据
     */
    ReportSummary getReportSummary(
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    /**
     * 获取员工订单统计数据，按总金额降序排列
     */
    List<EmployeeOrderStats> getEmployeeOrderStats(
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime,
            @Param("limit") Integer limit);
} 